<?php

/**
 * JingYao-backend
 *
 * @link     https://gitee.com/wang-zhihui-release/jingyao-backend
 * @apiDocument https://gitee.com/wang-zhihui-release/jingyao-backend/wikis/
 */

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateAdminUserAssessLogsTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('admin_user_assess_logs', function (Blueprint $table) {
            $table->id();
            $table->integer('admin_user_id')->comment('管理员用户 id');
            $table->integer('assess_admin_user_id');
            $table->integer('assess_template_id');
            $table->integer('assess_template_rule_id');
            $table->integer('score');
            $table->integer('assess_time');
            $table->index('admin_user_id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('admin_user_assess_logs');
    }
}
